package com.chainyoung.component_tmperson.ui.mvp.model;

import com.chainyoung.common.appcommon.db.DbConstant;
import com.chainyoung.common.appcommon.entity.HdWalletCache;
import com.chainyoung.common.appcommon.hdwallet.EtherscanService;
import com.chainyoung.common.appcommon.hdwallet.HdWalletDAO;
import com.chainyoung.common.integration.IRepositoryManager;
import com.chainyoung.common.mvp.BaseModel;
import com.chainyoung.component_tmperson.ui.mvp.contract.SelectHdWalletListContract;
import com.chainyoung.component_tmperson.ui.mvp.contract.WalletLocalContract;

import org.json.JSONObject;

import java.util.List;

import javax.inject.Inject;

import io.reactivex.Flowable;
import io.reactivex.annotations.NonNull;
import io.reactivex.functions.Function;
import okhttp3.ResponseBody;

public class SelectHdWalletListModel  extends BaseModel implements SelectHdWalletListContract.Model {

    private HdWalletDAO DAO = new HdWalletDAO(mRepositoryManager.obtainRealmConfig(DbConstant.DB_NAME));


    @Inject
    SelectHdWalletListModel(IRepositoryManager repositoryManager) {
        super(repositoryManager);

    }





    @Override
    public Flowable<List<HdWalletCache>> getAllHdWalletCaches(String coinType) {
        return DAO.getHdWalletCaches(coinType);
    }


}